package com.xtkj.superclub_entity.entity.friendsCircle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import	java.util.Date;

import java.io.Serializable;
import java.util.List;

/**
 * 项目名称：superclub
 * 类 名 称：FriendCicleShare
 * 类 描 述：TODO
 * 创建时间：2020/1/2 15:14
 * 创 建 人：xiezhiyan
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain=true)
@ToString
@TableName("f_friendCicleShare")
@ApiModel(value = "朋友圈分享")
public class FriendCicleShare implements Serializable {

    @TableId(value = "share_id",type = IdType.INPUT)
    @ApiModelProperty(name = "shareId",value = "分享id",required =true)
    private String shareId;//分享id
    @ApiModelProperty(name = "idea",value = "简要描述")
    private String idea;//简要描述
    @ApiModelProperty(name = "shareUserId",value = "分享用户id")
    private String shareUserId;//分享用户id
    @ApiModelProperty(name = "shareTitle",value = "分享内容的标题")
    private String shareTitle;//分享内容的标题
    @ApiModelProperty(name = "activityStartTime",value = "活动开始的时间")
    private String activityStartTime;//活动开始的时间
    @ApiModelProperty(name = "simplePhoto",value = "分享的图片简介")
    private String simplePhoto;//分享的图片简介
    @ApiModelProperty(name = "shareTypeId",value = "分享类型")
    private String shareTypeId;//分享类型
    @ApiModelProperty(name = "likeNum",value = "喜欢数量")
    private Integer likeNum;//喜欢数量

    @TableField(exist = false)
    private List<ShareComment> shareCommit;

    @TableField(exist = false)
    private  ShareType shareType;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "createdtm",value = "创建时间")
    private Date createdtm;//创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "updatedtm",value = "修改时间")
    private Date updatedtm;//修改时间




}